using System;
using Actions;
using UnityEngine;

namespace UI
{
    public class HealthBarUi : MonoBehaviour
    {
        [SerializeField] private Ring ring;


        private void Update()
        {
            Vector3 scale = transform.localScale;
            scale.x = ring.CurrentScalePercent;
            transform.localScale = scale;
        }
    }
}
